package cn.edu.scau.cmi.tangqingning.interProgramming;

public class Car extends Vehicle {
    private String name;
    private double weight;

    public Car() {
    	name = "mr";
        weight = 0;
    }
    public Car(String name, double weight){
        this.name = name;
        this.weight = weight;
    }
    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public double getWeight() {
        return this.weight;
    }
}

